$ratio: 375 / 10;
$animatinoTime: 0.2s;
$animatinoType: linear;
@function px2rem($px) {
    @return $px / $ratio + rem;
}
@mixin center {
    display: flex;
    justify-content: center;
    align-items: center;
}
@mixin absCenter {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}
@mixin columnLeft {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
@mixin left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

@mixin right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

@mixin top {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

@mixin columnCenter {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@mixin leftBottom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

@mixin spaceBetween {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@mixin ellipsis {
    // 属性确定如何向用户发出未显示的溢出内容信号。它可以被剪切，显示一个省略号
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    // 不换行
    white-space: nowrap !important;
}

@mixin ellipsis2($line) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: $line;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: keep-all;
}

@mixin columnTop {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

@mixin scroll {
    // x 不能滚动 y 可以滚动
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    &::-webkit-scrollbar {
        display: none;
    }
}
.icon {
    color: #666;
    font-size: px2rem(16);
}

.title {
    color: #666;
    font-size: px2rem(16);
    font-weight: bold;
}
